package CardDemo;

public class Card {
    private int rank;//牌面
    private  String suit;//花色

    public Card(String suit, int rank) {
        this.rank =rank;
        this.suit =suit;
    }

    @Override
    public String toString() {
        /*"Card{" +
                "rank=" + rank +
                ", suit='" + suit + '\'' +
                '}';*/
        return "{"+suit +rank+"}";
    }
}
